<?php
function make_date_text($minute = 0, $hour = 0, $day = 0, $week = 0, $separator=', ', $showzeros=false){
	$str;
	$first=true;
	if($showzeros OR $week!=0){
		$str.=$week." {week}";
		$first=false;
	}
	if($showzeros OR $day!=0){
		if(!$first){
			$str.=$separator;
		}
		$str.=$day." {day}";
		$first=false;
	}
	if($showzeros OR $hour!=0){
		if(!$first){
			$str.=$separator;
		}
		$str.=$hour." {hour}";
		$first=false;
	}
	if($showzeros OR $minute!=0){
		if(!$first){
			$str.=$separator;
		}
		$str.=$minute." {minute}";
		$first=false;
	}
	return $str;
	
}
?>